package cn.yuanqiao.archive.appManager.service;

import cn.yuanqiao.archive.appManager.domain.YqdaTrees;
import cn.yuanqiao.common.core.domain.TreeSelect;
import com.alibaba.fastjson2.JSONObject;

import java.util.List;
import java.util.Map;

/**
 * treesService接口
 * 
 * @author 赵常飞
 * @date 2023-06-17
 */
public interface IYqdaTreesService 
{
    /**
     * 查询trees
     * 
     * @param Id trees主键
     * @return trees
     */
    public YqdaTrees selectYqdaTreesById(Long Id);

    /**
     * 查询trees列表
     * 
     * @param yqdaTrees trees
     * @return trees集合
     */
    public List<YqdaTrees> selectYqdaTreesList(YqdaTrees yqdaTrees);

    /**
     * 新增trees
     * 
     * @param jsonObject
     * @return 结果
     */
    public int insertYqdaTrees(JSONObject jsonObject);

    /**
     * 修改trees
     * 
     * @param yqdaTrees trees
     * @return 结果
     */
    public int updateYqdaTrees(YqdaTrees yqdaTrees);

    /**
     * 批量删除trees
     * 
     * @param Ids 需要删除的trees主键集合
     * @return 结果
     */
    public int deleteYqdaTreesByIds(Long[] Ids);

    /**
     * 删除trees信息
     * 
     * @param Id trees主键
     * @return 结果
     */
    public int deleteYqdaTreesById(Long Id);

    List<TreeSelect> getTreeList();

    JSONObject getfl(JSONObject json);

    List getAllTreeList();

    Map<String,Object> getroletree();

    Map<String,Object> getmunutreebyrole(Long roleId);

    List<TreeSelect> gettreebyrolemenuxh(Long roleId, Long menuId,String choosed);

    int addtreeshouquan(JSONObject json);

    List<TreeSelect> gettrees(Long menuId);

    List<Map<String, Object>> testsql(String sql);

    void insertsql(String sql);

    List<TreeSelect> getNewTreeList();

    List<TreeSelect>  getNewtrees(Long menuId);
}
